package com.gitee.shoes.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.gitee.shoes.crawler.core.AbstractApiRequest;
import com.gitee.shoes.crawler.core.dewu.DewuApiRequest;
import com.gitee.shoes.crawler.core.nice.NiceApiRequest;
import com.gitee.shoes.crawler.core.shihuo.ShihuoApiRequest;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author LYH
 */
@RequiredArgsConstructor
public enum PlatformEnum {

    du("du", "毒", true, true, true, new DewuApiRequest()),
    nice("nice", "nice", true, true, true, new NiceApiRequest()),
    shihuo("shihuo", "识货", true, false, false, new ShihuoApiRequest());

    @EnumValue
    @Getter
    private final String text;
    @Getter
    private final String zhText;
    /**
     * 允许查询现在购买价
     */
    @Getter
    private final boolean allowBuyNowPrice;
    /**
     * 允许查询购买记录
     */
    @Getter
    private final boolean allowSoldRecord;
    /**
     * 允许搜索
     */
    @Getter
    private final boolean allowSearch;
    @Getter
    private final AbstractApiRequest request;

}
